package day06;

public class Car {
    private String color;
    private String brand;
    private double price;


    public Car(String color, String brand, double price) {

    }
    public void forward(){
        System.out.println("前进");
    } 
    public void back(){
        System.out.println("后退");
    }
    public void turn(){
        System.out.println("转弯");
    }
    public String getcolor(){
        System.out.println("颜色");
                return color;
    }
    public String getbrand(){
        System.out.println("品牌");
        return brand;
    }
    public double getprice(){
        System.out.println("价格");
        return price;
    }
    public void print() {
        throw new UnsupportedOperationException("Unimplemented method 'print'");
    }
    }

